package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_prebuild_component")
@XmlRootElement
public class TPrebuildComponent {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String type;
    private String name;
    @TableField(exist = false)
    private Double w;
    @TableField(exist = false)
    private Double h;
    @TableField(exist = false)
    private Double x;
    @TableField(exist = false)
    private Double y;
    @TableField(exist = false)
    private String textChinese;
    @TableField(exist = false)
    private String textTraditional;
    @TableField(exist = false)
    private String textEnglish;
    private String background;
    private String fontColor;
    private Integer fontSize;
    private String backgroundColor;
    private Integer borderCorner;


    @TableField(exist = false)
    private String switchEventEnable;

    @TableField(exist = false)
    private Boolean vertical;

    @TableField(exist = false)
    private Boolean conditionShow;

    private String railBackground;
    private String railProgressColor;
    private Double railBorderWidth;
    private String railBorderColor;
    private Double railBorderRoundCorner;
    private String sliderBackground;
    private Double sliderWidth;
    private Double sliderHeight;
    private Double sliderMarginTop;
    private Double sliderMarginBottom;
    private Double sliderMarginLeft;
    private Double sliderMarginRight;
    private String sliderBackgroundColor;
    private Double sliderBorderRadius;
    private Integer videoType;

    private String src;

    @TableField(exist = false)
    private String textValue;

    @TableField(exist = false)
    private String traditionalTextValue;

    @TableField(exist = false)
    private String englishTextValue;

    @TableField(exist = false)
    private Integer min;

    @TableField(exist = false)
    private Integer max;

    @XmlElement
    public Integer getBorderCorner() {
        return borderCorner;
    }

    @XmlElement
    public String getBackgroundColor() {
        return backgroundColor;
    }

    @XmlElement
    public Integer getFontSize() {
        return fontSize;
    }

    @XmlElement
    public String getFontColor() {
        return fontColor;
    }

    @XmlElement
    public String getBackground() {
        return background;
    }

    @XmlElement
    public String getType() {
        return type;
    }

    @XmlElement
    public String getName() {
        return name;
    }


}
